package com.行为模型.命令模式.实例;

/**餐厅点菜
 *  服务员（客户端）
 *  菜名（命令）
 *  厨师（执行者）
 * @author chenhs
 * @date 2020/11/8
 */
public class Test {
	public static void main(String[] args) {
		
		Waiter waiter = new Waiter();
		Beef beef = new Beef();
		Soup soup = new Soup();
		waiter.setMage(beef);
		waiter.placeAnOrder();
		waiter.setMage(soup);
		waiter.placeAnOrder();
	}

}
